package cn.com.dcsgo.library.admin.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.util.List;

/**
 * @author Dcsgo
 * @since 2024/9/4 11:46
 */
@Data
@ApiModel(description = "图书详情VO")
public class BookVO {
    @ApiModelProperty("图书编号")
    private Long id;

    @ApiModelProperty("图书标题")
    private String title;

    @ApiModelProperty("作者姓名")
    private String author;

    @ApiModelProperty("国际标准书号")
    private String isbn;

    @ApiModelProperty("图书分类")
    private String category;

    @ApiModelProperty("出版日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern = "yyyy年M月d日")
    private LocalDate publishedDate;

    @ApiModelProperty("图书复本")
    private List<BookCopiesVO> copies;
}
